package pres.sweven.tabpager

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.viewpager.widget.PagerAdapter
import androidx.viewpager.widget.ViewPager
import com.google.android.material.tabs.TabLayout
import pres.sweven.tabpager.helper.CustomViewChange
import pres.sweven.tabpager.helper.TabHelper

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val tab: TabLayout = findViewById(R.id.tab)
        val pager: ViewPager = findViewById(R.id.viewPager)

        val pagerAdapter =object :PagerAdapter(){
            override fun getCount(): Int {
                TODO("Not yet implemented")
            }

            override fun isViewFromObject(view: View, `object`: Any): Boolean {
                TODO("Not yet implemented")
            }

        }

        TabHelper(tab, pager, object : CustomViewChange {
            override fun addCustomView(any: Any?): View? {
                TODO("Not yet implemented")
            }

            override fun onSelected(view: View?) {

            }

            override fun unSelected(view: View?) {
            }

        })
    }
}